/*
 * @Author: your name
 * @Date: 2022-03-01 19:18:56
 * @LastEditTime: 2022-03-01 20:11:51
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue\myapp\src\router\index.js
 */
import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/page',
    name: 'page',
    component: () => import(/* webpackChunkName: "about" */ '../views/homePage.vue')
  },{
    path:"/",
    redirect:'/page'
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
